package jiekou;

interface Flyer{
	
	//接口里的变量，会自动成常量
	public static final int N=88;
	int NUM=99;
	
	public void fly();
}

interface Swimer{
	public void swim();
}

//接口可以多重实现
class Person implements Flyer,Swimer{

	@Override
	public void fly() {
		System.out.println("我可以飞");
		
	}

	@Override
	public void swim() {
		System.out.println("我可以游泳");
		
	}
	
}


public class Test3 {
	
	public static void main(String[] args) {
		Person ren=new Person();
		
		ren.fly();
		ren.swim();
		
		System.out.println( Flyer.N );
		System.out.println( Flyer.NUM);
	}

}
